# Maintainer: Frederik Schwan <freswa at archlinux dot org>

pkgname=libaxc
pkgver=0.3.7
pkgrel=1
pkgdesc='Client lib for libsignal-c aka libaxolotl'
arch=('loong64' 'x86_64')
url='https://github.com/gkdr/axc'
license=('GPL3')
depends=('libsignal-protocol-c' 'sqlite' 'libgcrypt' 'glib2')
provides=('libaxc.so')
source=("https://github.com/gkdr/axc/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
b2sums=('e43220745cbf1e3f375c69218cc0c5bc944e2fbfd1ca2a79be38d8cac9206609f757b8afbf5d5a1411ad29cddbb8edf9cf67b570fe152d91e77e070ddbf4666f')

build() {
  cd ${pkgname##lib}-${pkgver}
  make PREFIX="/usr"
}

package() {
  cd ${pkgname##lib}-${pkgver}
  make DESTDIR="${pkgdir}" PREFIX="/usr" install
  chmod a+x "${pkgdir}"/usr/lib/libaxc.so.${pkgver}
}
